package com.jic.product.rest.response;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * 商品表
 *
 * @author :
 * @version : v1.0.0
 * @email :
 * @since : 2020-01-10 07:03:01
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ProductResponseFront {
    @ApiModelProperty(value = "商品id")
    private long id;

    @ApiModelProperty(value = "商品编码")
    private String code;

    @ApiModelProperty(value = "商品图片")
    private String pictureUrl;

    @ApiModelProperty(value = "实际售价")
    private BigDecimal salePriceWithTax;

    @ApiModelProperty(value = "促销价格")
    private BigDecimal marketPrice;

    @ApiModelProperty(value = "商品名称")
    private String chineseName;

    @ApiModelProperty(value = "库存")
    private Integer availableStock;

    @ApiModelProperty(value = "已售")
    private Integer saleNum;

    @ApiModelProperty(value = "评论数量")
    private Long commentNum;


    @ApiModelProperty(value = "商品类型  1普通商品 2 Spu 3 Sku")
    private Integer typeOfProduct;

}
